package com.qige.homework;

import com.qige.homework.test.*;

public class homework4 {
    public static void main(String[] args) {
        Circle circle = new Circle(5);
        Rectangle rectangle = new Rectangle(5, 10);
        Triangle triangle = new Triangle(5, 10, 15);
        boolean test1 = Test14_1.graphicEquality(circle, rectangle);
        boolean test2 = Test14_1.graphicEquality(circle, triangle);
        boolean test3 = Test14_1.graphicEquality(rectangle, triangle);
        System.out.println(test1);
        System.out.println(test2);
        System.out.println(test3);
        System.out.println(Test14_1.getMaxArea(circle, rectangle));
        System.out.println(Test14_1.getMaxArea(circle, triangle));
        System.out.println(Test14_1.getMaxArea(rectangle, triangle));
        Graphic[] graphics = new Graphic[3];
        graphics[0] = circle;
        graphics[1] = rectangle;
        graphics[2] = triangle;
        Test14_2.printGraphic(graphics);
        Test14_2.sortArea(graphics);
    }
}
